package org.blogwu.learn.designpattern.chapter11.v1;

/**
 * 在原基础上加个鸡蛋
 *
 * @author hyf
 * @date 2018-10-27
 **/
public class BattercakeWithEgg extends Battercake {

    @Override
    public String getDesc() {
        return super.getDesc() + " 加一个鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 1;
    }
}
